﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model.CommonModel.PageModel;
using Model.EntityModel.Auth;
using Model.EntityModel.SysModel;
using Model.QueryModel.system;

namespace Service.IService.ISysService
{
    /// <summary>
    /// 组别服务接口
    /// </summary>
    public interface IGroupService
    {
        List<Group> GetActiveGroups();
        List<Group> GetGroupsByIds(List<string> ids);
        bool CreateGroup(Group group);
        bool UpdateGroup(Group group);
        bool UpdateGroupStatus(string groupId, string isActive);
        bool GroupExists(string groupId);
        Group GetGroupById(string groupId);
        List<User> GetGroupUsers(string groupId);
         bool RemoveUsersFromGroup(string groupId, List<string> userIds);
        bool AddUsersToGroup(string groupId, List<string> userIds);
        PagedInfo<Group> GetPageGroup(int pageNum, int pageSize, QueryGroup search);

    }
}
